package com.touzhijia.authority.domain.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;


@ApiModel("新增权限")
@Data
public class PermissionAddReq implements Serializable {
    /**
     * 模块名称
     */
    @ApiModelProperty("模块名称")
    @NotBlank
    @Length(max = 128)
    private String module;

    /**
     * 权限标题
     */
    @ApiModelProperty("权限标题")
    @NotBlank
    @Length(max = 255)
    private String title;

    /**
     * 权限标识字符串
     */
    @ApiModelProperty("权限标识字符串")
    @NotBlank
    @Length(max = 255)
    private String permission;

    /**
     * 权限说明
     */
    @ApiModelProperty("权限说明")
    @NotBlank
    @Length(max = 2000)
    private String description;
}
